<center>
    <?php echo $this->view->menssagem; ?>
    <div class="panel panel-default" style="width: 600px">
        <div class="panel-heading" style="font-weight:  bolder">Cadastro de Beneficiário</div>
        <div class="panel-body">
            <form method="post" action="/caixa/beneficiario_add" class="form-horizontal" role="form">
                <div class="form-group">
                    <label for="nome_beneficiario" class="col-sm-3 control-label">Nome</label>
                    <div class="col-sm-8">
                        <input class="form-control"
                        <?php
                        if (isset($this->view->beneficiario)) {
                            echo " value='{$this->view->beneficiario['nome']}' ";
                        }
                        ?>
                               type="text" size="30" name="nome_beneficiario" id="nome_beneficiario" placeholder="Digite o nome do beneficiário"/>
                               <?php
                               if (isset($this->view->beneficiario)) {
                                   echo "<input type='hidden' value='{$this->view->beneficiario['id']}' name='id' />";
                               }
                               ?>
                    </div>
                </div>
                <div class="form-group">
                    <div align="right" class="col-sm-offset-1 col-sm-10">
                        <button class="btn btn-primary" type="submit" ><span class="glyphicon glyphicon-floppy-disk"></span> Salvar</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</center>